<template>
  
        <div class="option-title" >
                    <a class="title-item">{{title}}</a>
                    <ul>
                        <li v-for="(item,index) in list" :key="index"> <a href="#">{{item.listTitle}}</a>
                            <span v-if="item.isSeparator">{{separator}}</span>
                        </li>
                    </ul>
                    <div class="more">
                        {{more}}
                        <li></li>
                    </div>
                </div>
   
</template>

<script>
    export default {
         props : {
            title : {
                type : String,
                default : '热门推荐',
                require : true
            },
            more : {
                type : String,
                default : '更多'
            },
            list : {
                type : Array ,
                default : ()=> []
            },
            separator : {
                type : String,
                default : '|',
                require : false
            }
         },
         mounted(){
         }
    }
</script>

<style lang="scss" scoped>
   .option-title {
            height: 33px;
            padding: 0 10px 0 34px;
            border-bottom: 2px solid #C10D0C;
            display: flex;
            align-items: center;
            position: relative;
            background: url(@/assets/image/index.png) no-repeat -225px -153px;

            .title-item {
                font-size: 20px;
                font-weight: normal;
                line-height: 28px;
            }

            ul {
                margin-left: 20px;

                li {
                    float: left;
                    font-size: 12px;
                    margin: 7px 0 0 20px;
                    margin-left: 10px;

                    a {
                        color: #666;
                        text-decoration: none;
                        &:hover{
                          text-decoration: underline;
                        }
                    }
                    span{
                        margin: 0 10px;
                        color: #ccc;
                    }
                }
            }

            .more{
                position: absolute;
                font-size: 12px;
                color: #666;
                right: 0;
                cursor: pointer;
                &:hover{
                    text-decoration: underline;
                }
                li{
                    display: inline-block;
                    width: 12px;
                    height: 12px;
                    margin-left: 4px;
                    vertical-align: middle;
                    background: url(@/assets/image/index.png) no-repeat 0 9999px;
                    background-position: 0 -240px;
                }
            }
        }
</style>